<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="icon" type="image/ico" th:href="@{/images/favicon.ico}">
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/index.css}">
    <title>招聘管理列表</title>
</head>
<body class="layui-tab-content">
<div class="layui-card layui-card-body">
<div class="layui-form toolbar" id="queryTools">
    <div class="layui-form-item">
        <label class="layui-form-label">招聘职位:</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" id="name" placeholder="请填写招聘职位">
        </div>
        <label class="layui-form-label">工作地点:</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" id="place" placeholder="请填写工作地点">
        </div>
        <label class="layui-form-label">发布时间:</label>
        <div class="layui-input-inline">
            <input type="text" lay-verify="date" class="layui-input" id="startDate" placeholder="请选择开始时间">
        </div>
        <div class="layui-input-inline">
            <input type="text" lay-verify="date" class="layui-input" id="endDate" placeholder="请选择结束时间">
        </div>
        <button class="layui-btn" id="btnSearch">查询</button>
        <button class="layui-btn" id="resetSearch">重置</button>
        <button class="layui-btn" id="btnAdd">新增</button>
    </div>
</div>
<table class="layui-hide" id="recruitTable" lay-filter="recruitTable"></table>
</div>
<!--新增修改界面-->
<form class="layui-form" id="editForm" lay-filter="editForm" style="display:none;padding-top:10px">
    <input type="hidden" name="id">
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="layui-tip-required">*</i>招聘职位</label>
        <div class="layui-input-block" style="width: 60%;">
            <input type="text" name="name" lay-verify="required|nameLen" autocomplete="off" placeholder="请输入招聘职位"
                   class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="layui-tip-required">*</i>工作地点</label>
        <div class="layui-input-block" style="width: 60%;">
            <input type="text" name="place" lay-verify="required|addrLen" autocomplete="off" placeholder="请输入工作地点"
                   class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">工作年限</label>
        <div class="layui-input-block" style="width: 60%;">
            <input type="text" name="workYear" lay-verify="yearLen" autocomplete="off" placeholder="请输入工作年限"
                   class="layui-input layui-form-danger">
            <div class="layui-form-mid layui-word-aux">为空表示工作年限不限</div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">招聘人数</label>
        <div class="layui-input-inline" style="width: 58%;">
            <input type="text" name="count" lay-verify="countLen|count" autocomplete="off" placeholder="请输入招聘人数"
                   class="layui-input layui-form-danger">
        </div>
        <label class="layui-inline" style="font-size: 15px;line-height: 15px;height: 15px;margin-left: -15px;margin-top: 12px;">人</label>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">学历要求</label>
        <div class="layui-input-block" style="width: 60%;">
            <input type="text" name="eduText" lay-verify="nameLen" autocomplete="off" placeholder="请输入学历要求"
                   class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">所属部门</label>
        <div class="layui-input-block" style="width: 60%;">
            <input type="text" name="dept" lay-verify="nameLen" autocomplete="off" placeholder="请输入所属部门"
                   class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="layui-tip-required">*</i>招聘显示</label>
        <div class="layui-input-inline" id="statusDiv">
            <!--<input type="checkbox" name="status" lay-skin="switch" lay-text="显示|不显示" value="1">-->
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="layui-tip-required">*</i>发布时间</label>
        <div class="layui-input-inline">
            <input type="text" name="releaseTime" id="releaseTime" lay-verify="required|datetime" autocomplete="off" placeholder="请选择发布时间"
                   class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">招聘要求</label>
        <div class="layui-input-block">
            <div id="ueditorText" style="width: 690px;min-height: 400px;"></div>
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <button id="saveRecord" class="layui-btn" lay-submit lay-filter="editRecord">保存</button>
    </div>
</form>
<!--渲染列-->
<script type="text/html" id="statusClo">
    {{# if(d.status == 1){ }}
    显示
    {{# } else if(d.status ==3 ) { }}
    不显示
    {{# } else if(d.status ==2 ) { }}
    置顶
    {{# } }}
</script>
<!--渲染列-->
<script type="text/html" id="workYearClo">
    {{# if(d.workYear !=''){ }}
    <span title="{{d.workYear}}" > {{d.workYear}} </span>
    {{# } else { }}
    <span>不限</span>
    {{# } }}
</script>
<!--渲染列-->
<script type="text/html" id="imgRender">
    <div>
        <img src="{{ d.url }}">
    </div>
</script>
<!--列操作-->
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<!--按钮操作-->
<script type="text/html" id="tableToolbar">
    <div class="layui-btn-container">
    </div>
</script>

<script type="text/javascript" th:src="@{/js/plugins/jquery-1.11.3.min.js}"></script>
<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<!-- 百度Ueditor编辑器-->
<script type="text/javascript" th:src="@{/ueditor/ueditor.config.js}"></script>
<script type="text/javascript" th:src="@{/ueditor/ueditor.all.js}"></script>
<script type="text/javascript" th:src="@{/ueditor/lang/zh-cn/zh-cn.js}"></script>
<script type="text/javascript" th:src="@{/js/modules/recruit/list.js}"></script>
</body>
</html>